package com.youfan.service;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "search-application", path = "search")
public interface SearchService {

    @PostMapping(value = "addData")
    public String addData(@RequestBody JSONObject jsonObject);

    @PostMapping(value = "deleteDataById")
    public void deleteDataById(@RequestBody JSONObject jsonObject);

    @PostMapping(value = "updateDataById")
    public  void updateDataById(@RequestBody  JSONObject jsonObject);

}
